 <%@ page contentType="text/html; charset=utf-8"%>
<% String sWS=request.getContextPath(); %>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>


<html:html>
<head>
<title>Bienvenidos al Registro de Contratos</title>

    <!--Estilos Globales-->
    <link href="<%=sWS%>/util/estilos/estilos.css" rel="stylesheet" type="text/css">	
    <!--Script de validaciones FORM-->
    <SCRIPT language=JavaScript src="<%=sWS%>/util/js/valida.util.js"></SCRIPT>
    <logic:equal name="PGP_Seguridad" value="yes">
    <!--Script de Proteccion-->        
    <script language="javascript" src="<%=sWS%>/util/js/proteccion.js"></script>
    </logic:equal>
    
    <style type="text/css">
<!--
.style1 {color: #ECE9D8}
-->
    </style>
  </head>

<body style="background-image: url(<%=sWS%>/util/images/fondos/fondo.jpg);" onLoad="javascript:document.forms[0].v_ruc.focus()">


<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>

<table width="500" height="50" border="1" align="center" background="<%=sWS%>/util/images/fondos/pie.jpg">
  <tr align="center">
    <td></td>
  </tr>
</table>

<p><br />
</p>
<html:form action="/doIngreso">
<html:hidden property="method"/>
  <table width="225" border="0" align="center" cellpadding="3" cellspacing="0">
    <tr>
      <td colspan="3" align="center" bgcolor="#B6CBEB" class="contenido_negrita">Usuario con clave SOL </td>
      </tr>
    <tr>
      <td width="82" bgcolor="#EEEEEE" class="contenido_negrita">RUC:</td>
      <td width="145" bgcolor="#EEEEEE"><html:text property="v_ruc"  maxlength="11" value="20341841357" size="15" styleClass="cajas_texto_obli" onkeypress="javascript:convertirMayusculas();" onkeydown="javascript: if(event.keyCode==13)fn_Login();"/></td>
      <td width="16" bgcolor="#EEEEEE">&nbsp;</td>
    </tr>
    <tr>
      <td bgcolor="#EEEEEE" class="contenido_negrita">Usuario:</td>
      <td bgcolor="#EEEEEE"><html:text property="v_usuario" size="15" styleClass="cajas_texto_obli" value="SCOTT" onkeypress="javascript:convertirMayusculas();" onkeydown="javascript: if(event.keyCode==13)fn_Login();"/></td>
      <td bgcolor="#EEEEEE">&nbsp;</td>
    </tr>
    <tr>
      <td bgcolor="#EEEEEE"><span class="contenido_negrita">Clave:</span></td>
      <td bgcolor="#EEEEEE"><html:password property="v_contrasena" size="15" styleClass="cajas_texto_obli" onkeypress="javascript:convertirMayusculas();" onkeydown="javascript: if(event.keyCode==13)fn_Login();"/></td>
      <td bgcolor="#EEEEEE">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="3" align="center" valign="middle" class="button">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="3" align="center" valign="middle" class="button"><a href="javascript:fn_Login();" class="style1">Iniciar Sesion </a></td>
    </tr>
  </table>
</html:form>   

 
 <logic:messagesPresent>
<table width="300" border="1" cellpadding="0" cellspacing="0" bordercolor="#990000" bgcolor="#FFFFCC" align="center">
  <tr>
    <td class="contenido"><html:errors/></td>
  </tr>
</table>
</logic:messagesPresent>


</body>



<script language="javascript">
    function fn_Login(){       
        document.forms[0].method.value = "Login";
        document.forms[0].submit();
    }
</script>


</html:html>
